﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WCFMINERP.Factory.Presenter;
using WCFMINERP.InnerFactoryContracts.DataContracts;

namespace WCFMINERP.Factory
{
    public partial class frmTech : Form
    {
        public frmTech()
        {
            InitializeComponent();
        }

        private void frmTech_Load(object sender, EventArgs e)
        {
            if (InnterManagePresenter.UserInfo != null)
            {
                com_tech.DataSource = InnterManagePresenter.UserInfo.TechModelList;
                com_tech.DisplayMember = "TechName";


                com_tech.SelectedIndex = 0;
            }
        }

        /// <summary>
        /// 确定岗位
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void but_SelectTech_Click(object sender, EventArgs e)
        {
            TechModel model = com_tech.SelectedItem as TechModel;
            InnterManagePresenter.tech = model;
            this.Close();
        }
    }
}
